$(function(){
	//返回会员页
	$(".backBt").on("click",function(){
		$("#myModalLabel").text("提示");
		$(".modal-body").text("是否关闭当前页面并返回会员页面？");
		$(".modal-footer").empty();
		$(".modal-footer").html("<button type='button' class='btn btn-info toMember'>确认</button>"
				+"<button type='button' class='btn btn-default' data-dismiss='modal'>取消</button>");
	});
	$(document).on("click",".toMember",function(){
		window.location.href="../pages/member.html";	
	});
	//返回登录页
	$(".ifBack").on("click",function(){
		$("#myModalLabel").text("提示");
		$(".modal-body").text("是否关闭当前页面并返回登录页面？");
		$(".modal-footer").empty();
		$(".modal-footer").html("<button type='button' class='btn btn-info toLogin'>确认</button>"
				+"<button type='button' class='btn btn-default' data-dismiss='modal'>取消</button>");
	});
	//返回登录页
	$(document).on("click",".toLogin",function(){
		window.location.href="../pages/login.html";	
	});
})